/*
* @author : TF-BJ-C064
* @creation : 2014-6-20 下午7:54:47
* @description : 
*
*/

package com.service.impl;

import java.util.List;

import com.dao.TestDao;
import com.service.TestService;

public class TestServiceImpl implements TestService {
	
	TestDao  dao;

	@Override
	public Object get(Integer id) throws Exception {
		return dao.get(id);
	}

	@Override
	public List<Object> query(Object object) throws Exception {
		return dao.query(object);
	}

	@Override
	public String update(Object object) throws Exception {
		return dao.update(object);
	}

	@Override
	public String delete(Integer id, Integer flag) throws Exception {
		return dao.delete(id, flag);
	}

	@Override
	public List findByProperty(String propertyName, Object value)
			throws Exception {
		return dao.findByProperty(propertyName, value);
	}

	@Override
	public List findByExample(Object object) throws Exception {
		return dao.findByExample(object);
	}

	//getter and setter
	public TestDao getDao() {
		return dao;
	}

	public void setDao(TestDao dao) {
		this.dao = dao;
	}

}
